﻿#ifndef CLIENTMANAGER_H
#define CLIENTMANAGER_H

#include <QObject>
#include <QHostAddress>
class TransferSocket;
class TcpManager;

class ClientManager : public QObject
{
    Q_OBJECT
public:
    ClientManager();
    static ClientManager* instance();

public slots:
     Q_INVOKABLE void onSwitchChangedClicked();
     Q_INVOKABLE void onSwitchClosedClicked();

    void onNewConnection(QSharedPointer<TransferSocket> socket);
signals:
    void hasnewconnect(QString tmp);
};

#endif // CLIENTMANAGER_H
